package com.mdz.sbgl.Entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * <p>
 * 
 * </p>
 *
 * @author 孟德志
 * @since 2021-01-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("wenhb")
public class Wenhb extends Model<Wenhb> {

    private static final long serialVersionUID=1L;

    /**
     * 设备文号id号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 公司名称id号
     */
    @TableField("gsid")
    private String gsid;

    /**
     * 设备文号名称
     */
    @TableField("whmc")
    private String whmc;

    /**
     * 文号
     */
    @TableField("wenh")
    private String wenh;

    /**
     * 文号描述
     */
    @TableField("miaos")
    private String miaos;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
